package com.siashan.unipay4j.wx.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>V3 统一下单-单品列表</p>
 *
 * @author siashan
 * @since v2.0.1
 * @date 2022-09-23
 */
@Data
@Accessors(chain = true)
public class PayGoodsDetail {
    /**
     * 商品编码
     */
    @JSONField(name = "goods_id")
    private String goodsId;
    /**
     * 商品数量
     */
    private int quantity;

    /**
     * 商品单价
     *
     * @apiNote 商品单价，单位为分
     */
    @JSONField(name = "unit_price")
    private int unitPrice;

    /**
     * 商品优惠金额
     */
    @JSONField(name = "discount_amount")
    private int discountAmount;
    /**
     * 商品备注
     */
    @JSONField(name = "goods_remark")
    private String goodsRemark;


}
